package com.hbzhit.common.utils;


import com.baomidou.dynamic.datasource.toolkit.CryptoUtils;

/**
 * ENC加密工具类
 *
 * @author DING
 * @version 1.0
 * @date 2020/9/30 16:49
 */
public class EncEncryptUtils {

    public static void main(String[] args) throws Exception {
        // 原始字符串
        String str = "123456";
        System.out.println("原始字符串：" + str);
        // 加密
        String encodeStr = CryptoUtils.encrypt(str);
        System.out.println("ENC加密后字符串：" + encodeStr);
        System.out.println(CryptoUtils.decrypt("YogpX7Ekl24pRrZiSdZppatHOHFzNuh7uni0m9vWD5CA3NIPCnbis8U52l02g0JHNArk94xwIE45FvzjnrjC+w=="));
    }

}
